package org.com.lcuiot.security;

/**
 * 非对称算法密钥对
 *
 * @author gaoge
 * @since 2020-04-25 16:17
 */
public class AsymmetricKeyPair {

    private String privateKey;
    private String publicKey;

    public static AsymmetricKeyPair create() {
        return new AsymmetricKeyPair();
    }

    public static AsymmetricKeyPair create(String privateKey, String publicKey) {
        return new AsymmetricKeyPair(privateKey, publicKey);
    }

    public AsymmetricKeyPair() {
    }

    public AsymmetricKeyPair(String privateKey, String publicKey) {
        this.privateKey = privateKey;
        this.publicKey = publicKey;
    }

    public String privateKey() {
        return privateKey;
    }

    public String publicKey() {
        return publicKey;
    }
}
